GET api/stationsRecipes?ids[0]={ids[0]}&ids[1]={ids[1]}&code={code}

Recipes

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ids

list of sites

Collection of integer

Required

code

language code: sr, en

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of RecipeDataModel
NameDescriptionTypeAdditional information
station_name

string

None.

table

Collection of RecipeTableModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "station_name": "sample string 1",
    "table": [
      {
        "recipeId": 1,
        "time": "sample string 2",
        "message": "sample string 3"
      },
      {
        "recipeId": 1,
        "time": "sample string 2",
        "message": "sample string 3"
      }
    ]
  },
  {
    "station_name": "sample string 1",
    "table": [
      {
        "recipeId": 1,
        "time": "sample string 2",
        "message": "sample string 3"
      },
      {
        "recipeId": 1,
        "time": "sample string 2",
        "message": "sample string 3"
      }
    ]
  }
]

text/html

Sample:
[{"station_name":"sample string 1","table":[{"recipeId":1,"time":"sample string 2","message":"sample string 3"},{"recipeId":1,"time":"sample string 2","message":"sample string 3"}]},{"station_name":"sample string 1","table":[{"recipeId":1,"time":"sample string 2","message":"sample string 3"},{"recipeId":1,"time":"sample string 2","message":"sample string 3"}]}]

application/xml, text/xml

Sample:
<ArrayOfRecipeDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <RecipeDataModel>
    <station_name>sample string 1</station_name>
    <table>
      <RecipeTableModel>
        <message>sample string 3</message>
        <recipeId>1</recipeId>
        <time>sample string 2</time>
      </RecipeTableModel>
      <RecipeTableModel>
        <message>sample string 3</message>
        <recipeId>1</recipeId>
        <time>sample string 2</time>
      </RecipeTableModel>
    </table>
  </RecipeDataModel>
  <RecipeDataModel>
    <station_name>sample string 1</station_name>
    <table>
      <RecipeTableModel>
        <message>sample string 3</message>
        <recipeId>1</recipeId>
        <time>sample string 2</time>
      </RecipeTableModel>
      <RecipeTableModel>
        <message>sample string 3</message>
        <recipeId>1</recipeId>
        <time>sample string 2</time>
      </RecipeTableModel>
    </table>
  </RecipeDataModel>
</ArrayOfRecipeDataModel>